import request from '@/router/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/rb-core/core/othermoney/other_money/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getServeList = () => {
    return request({
        url: '/api/rb-core/core/serviceinfo/service_info/list',
        method: 'get',
        params: {
            size: -1,
            current: -1,
            serviceAuditStatus: 2
        }
    })
}

export const getDevList = () => {
    return request({
        url: '/api/blade-system/tenant/list',
        method: 'get',
        params: {
            size: -1,
            current: -1,
            tenantAuditStatus: 2
        }
    })
}


export const exportExal = (row) => {
    return request({
        url: '/api/rb-core/core/othermoney/other_money/export',
        method: 'get',
        params: {
            row
        }
    })
}

export const add = (row) => {
    return request({
        url: '/api/rb-core/core/othermoney/other_money/submitOtherMoney',
        method: 'post',
        data: row
    })
}

export const update = (row) => {
    return request({
        url: '/api/rb-core/core/othermoney/other_money/submitOtherMoney',
        method: 'post',
        data: row
    })
}